package com.iot.iotplus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("qf_device")
public class Device {

    private String id;
    private String name;
    private String deviceKey;
    private String deviceTypeId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @TableLogic
    @TableField("deleted")
    private Integer deleted;
    private String productId;
    private String parentId;
    private String tenantId;
    private String groupId;
    private Integer active;
    private String deviceSecret;
    private Integer deviceIndex;
}
